﻿using System;

namespace JoceLinItemDemoCase
{
    public class Program
    {
        public record Data(int intValue, float floatValue);
        static void Main(string[] args)
        {
            Program program = new Program();

            program.GetValue();
        }
        // 通过方法存值
        public void GetValue()
        {
            var data = (ValueA: 1, ValueB: 2f);
            Console.WriteLine(data.ValueA);
            Console.WriteLine(data.ValueB);

            Data dataValue = new Data(1, 2f);
            int a = dataValue.intValue;
            float b = dataValue.floatValue;
            Console.WriteLine(a);
            Console.WriteLine(b);
        }
    }
}
